package com.study.zzedu.bean;

import com.study.zzedu.R;
import com.study.zzedu.widget.bean.LayoutItem;

/**
 * LeafNode
 *
 * @author 林zero
 * @date 2018/1/14
 */

public class LeafNode2 implements LayoutItem {
    private String name;
    private String dataType;
    private String url;//对应课件 id（“ab64cebcc7cc4823b1b2b3b13210a942”）
    private String contentCode;//章节号(跳转测试页使用)
    private String status;//学习状态（"学习中"）---视频
    private String lastPosition;//上次学习位置

    public LeafNode2(String name, String url, String contentCode, String status, String lastPosition, String dataType) {
        this.name = name;
        this.url = url;
        this.contentCode = contentCode;
        this.status = status;
        this.lastPosition = lastPosition;
        this.dataType = dataType;
    }
    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContentCode() {
        return contentCode;
    }

    public void setContentCode(String contentCode) {
        this.contentCode = contentCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getLastPosition() {
        return lastPosition;
    }

    public void setLastPosition(String lastPosition) {
        this.lastPosition = lastPosition;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_leaf2;
    }

    @Override
    public int getToggleId() {
        return 0;
    }

    @Override
    public int getCheckedId() {
        return R.id.ivCheck;
    }

    @Override
    public int getClickId() {
        return R.id.tvName;
    }

    @Override
    public int getTypeId() {
        return R.id.tvType;
    }
}
